package com.guigu.equipmentservice.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * <p>
 * 检测报告图片表（存储设备检测的图片）
 * </p>
 *
 * @author qjm
 * @since 2025-10-22
 */
public class DetectionReportImage {
    private static final long serialVersionUID = 1L;

    /**
     * 图片唯一标识
     */
    private Long imageId;
    /**
     * 报告唯一标识
     */
    private Integer reportId;
    /**
     * 图片路径
     */
    private String imageUrl;
    /**
     * 图片描述
     */
    private String imageDesc;
    /**
     * 图片排序
     */
    private Integer sort;
    /**
     * 创建时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    public Long getImageId() {
        return imageId;
    }

    public void setImageId(Long imageId) {
        this.imageId = imageId;
    }

    public Integer getReportId() {
        return reportId;
    }

    public void setReportId(Integer reportId) {
        this.reportId = reportId;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    public String getImageDesc() {
        return imageDesc;
    }

    public void setImageDesc(String imageDesc) {
        this.imageDesc = imageDesc;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "DetectionReportImage{" +
        "imageId = " + imageId +
        ", reportId = " + reportId +
        ", imageUrl = " + imageUrl +
        ", imageDesc = " + imageDesc +
        ", sort = " + sort +
        ", createTime = " + createTime +
        "}";
    }
}
